package com.example.k8s.hello.bean.sys.form;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 系统用户
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@Schema(description = "系统用户")
public class SysUserUpdateForm implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Schema(description = "用户ID")
	@NotBlank(message="用户ID不能为空")
	private Long userId;

	@Schema(description = "学号")
	@NotBlank(message="学号不能为空")
	private String username;

	@Schema(description = "姓名")
	@NotBlank(message="姓名不能为空")
	private String nickname;

	@Schema(description = "密码")
	private String password;

	@Schema(description = "邮箱")
	@Email(message="邮箱格式不正确")
	private String email;

	@Schema(description = "手机号")
	private String mobile;

	@Schema(description = "状态  0：禁用   1：正常")
	private Integer status;

	@Schema(description = "角色ID列表")
	@TableField(exist=false)
	private List<Long> roleIdList;
}
